home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / sbin_-_Static_Binary_Files / INITSCRI.{21 < prev    next >
Text File  |  1999-09-17  |  710b  |  26 lines

  1. #
  2. # initscript    If this script is intalled as /sbin/initscript,
  3. #        it is executed by init(8) for every program it
  4. #        wants to spawn like this:
  5. #
  6. #        /bin/sh /sbin/initscript <id> <level> <action> <process>
  7. #
  8. #        It can be used to set the default umask and ulimit
  9. #        of all processes. By default this script is installed
  10. #        as /sbin/initscript.sample, so to enable it you must
  11. #        rename this script first to /sbin/initscript.
  12. #
  13. # Version:    @(#)initscript 1.10 10-Dec-1995 MvS.
  14. #
  15. # Author:    Miquel van Smoorenburg, <miquels@cistron.nl>
  16. #
  17.  
  18.   # Set umask to safe level, and enable core dumps.
  19.   umask 022
  20.   ulimit -c 2097151
  21.   PATH=/bin:/sbin:/usr/bin:/usr/sbin
  22.   export PATH
  23.  
  24.   # Execute the program.
  25.   eval exec "$4"
  26.